package networkProgramming.TCP;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class SocketTCP {
    public static void main(String[] args) throws IOException {
        String host = "127.0.0.1";
        int port = 11111;
        Socket s = new Socket(host, port);
        OutputStream outputStream = s.getOutputStream();
        outputStream.write("徐瑞琪会成功！！！".getBytes());
        s.close();

    }
}
